package com.koo.modules.product.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.koo.common.base.entity.CommonEntity;
import com.koo.modules.product.entity.vo.ImageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-01-13 11:56:24
 */
@Data
@ApiModel("")
@TableName("product_supplier")
public class ProductSupplierEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long supplierId;

    @ColumnWidth(11)
    @ExcelProperty("供应商类型")
    @ApiModelProperty(value = "供应商类型")
    private String supllierType;

    @ColumnWidth(11)
    @ExcelProperty("供应商名称")
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ColumnWidth(11)
    @ExcelProperty("地址")
    @ApiModelProperty(value = "地址")
    private String address;

    @ColumnWidth(11)
    @ExcelProperty("销售人员")
    @ApiModelProperty(value = "销售人员")
    private String salesman;

    @ColumnWidth(11)
    @ExcelProperty("电话")
    @ApiModelProperty(value = "电话")
    private String tel;

    @ColumnWidth(11)
    @ExcelProperty("手机")
    @ApiModelProperty(value = "手机")
    private String mobile;

    @ColumnWidth(11)
    @ExcelProperty("法人代表")
    @ApiModelProperty(value = "法人代表")
    private String corporater;

    @ColumnWidth(11)
    @ExcelProperty("营业执照")
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;

    @ColumnWidth(11)
    @ExcelProperty("营业执照期限")
    @ApiModelProperty(value = "营业执照期限")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date businessTimeLimit;

    @ColumnWidth(11)
    @ExcelProperty("产品经营许可证")
    @ApiModelProperty(value = "产品经营许可证")
    private String productBusinessLlicense;

    @ColumnWidth(11)
    @ExcelProperty("产品经营许可证期限")
    @ApiModelProperty(value = "产品经营许可证期限")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productTimeLimit;

    @ColumnWidth(11)
    @ExcelProperty("负责人")
    @ApiModelProperty(value = "负责人")
    private String leader;

    @ColumnWidth(11)
    @ExcelProperty("组织机构代码")
    @ApiModelProperty(value = "组织机构代码")
    private String organizationCode;

    @ColumnWidth(11)
    @ExcelProperty("组织机构期限")
    @ApiModelProperty(value = "组织机构期限")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date organizationTimeLimit;

    @ColumnWidth(11)
    @ExcelProperty("税务号")
    @ApiModelProperty(value = "税务号")
    private String taxNumber;

    @ColumnWidth(11)
    @ExcelProperty("下载标识识")
    @ApiModelProperty(value = "下载标识识")
    private String dataDownloadCode;

    @ColumnWidth(11)
    @ExcelProperty("1是门店共享，0不是")
    @ApiModelProperty(value = "1是门店共享，0不是")
    private Integer isShare;

    @TableField(exist = false)
    private List<ImageVo> licensePics;

    @TableField(exist = false)
    private List<ImageVo> businessPics;
}
